package com.gscitysfy.cus.drain.modules.pipe.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gscitysfy.cloudfrmwk.assistant.domain.Result;
import com.gscitysfy.cus.drain.modules.inspection.vo.MiniProgramCountVo;
import com.gscitysfy.cus.drain.modules.pipe.entity.DrainPipeNetworkJob;
import com.gscitysfy.cus.drain.modules.pipe.entity.DrainPipeNetworkReport;
import com.gscitysfy.cus.drain.modules.pipe.vo.DrainPipeNetworkJobVo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author admin
 * @since 2022-11-15 10:50:04
 */
public interface IDrainPipeNetworkJobService extends IService<DrainPipeNetworkJob> {

    Result<Object> getByPage(Page<DrainPipeNetworkJob> page, DrainPipeNetworkJobVo drainPipeNetworkJobVo);

    DrainPipeNetworkJob detail(Long id);

    Result<Object> jobXcx(Page<DrainPipeNetworkJob> page,String stutas,String   keyWord);

    Result<Object> detailXcxGw(Long id,String  orderState);

    Boolean addReport(List<DrainPipeNetworkReport> drainPipeNetworkReports);

    Result<Object> listReport();

    Map<String,Object> detailFlawByPipeId(Long id);

    Boolean startAndFinishPipe(Long id, Integer status,Long jobId);

    Boolean startAndFinishJob(Long id, Integer status);

    MiniProgramCountVo countPipeTask();
}
